約 3,969,256 件
https://w.atwiki.jp/kazushige/pages/11.html
基本 aptitude update aptitude upgrade モジュールの更新 aptitude search モジュール名 aptitude install モジュール名 aptitude remove モジュール名 インストール済みのパッケージを確認するのはdpkg -l sudo aptitude install sudo visudoで最下行に 「hogehogeALL=(ALL) ALL」 というようにsudo実行を許可するユーザを作成する。 ※時刻調整後にsudoを行おうとして、 「sudo timestamp too far in the future」 というエラーが出てくるようになったら、 touch /var/run/sudo/* をおこって、/var/run/sudo配下にあるsudoユーザのディレクトリの タイムスタンプをアップデートしてやればよい。 debconfのやり直し dpkg-reconfigure パッケージ 細かい設定を行いたい場合は dpkg-reconfigure -plow パッケージ 参考:http //ukai.jp/debuan/2001w/debconf.txt ssh導入~webmin ssh導入 sudo aptitude update sudo aptitude install ssh ssh -l ログインユーザ名 IPアドレス wget http //prdownloads.sourceforge.net/webadmin/webmin_1.360_all.deb dpkg -i webmin_1.360_all.deb NTP sudo aptitude install ntp ntpdate ntp-doc ntp-simple NTPサーバにアクセスできず手動で時計合わせをする場合は sudo date MMDDhhmmss のように指定。 参考:http //kinsan.main.jp/wiki/wiki.cgi?page=Linux%A4%C7%BB%FE%B7%D7%A4%CE%B9%E7%A4%EF%A4%BB%CA%FD apache sudo aptitude install apache samba sudo aptitude install samba sudo aptitude install swat ※swatインストール時に自動的に/etc/inetd.confが修正され、リスタートされる。 共有ディレクトリを作成しておく。(chmod 755) passwordのタブで、sambaで使うユーザ追加(smbpasswdと同じ) sharesのタブで、共有ディレクトリのパスを記述 path=/home/family/work read only=no 参考:http //linux.webseason.net/samba/ apache2 PHP5 sudo aptitude install apache2 ※apache1を過去にインストールしていたりすると、インストール後自動的にapache2が起動しない(?) 原因は、/etc/default/apache2 の中が NO_START=1 になっているから。 このままでは起動できないので、0に書きかえて、 /etc/init.d/apache2 start (/etc/init.d/apache2 restart でも良し) webページを表示すると、「it works」と表示。 まずは、/etc/apache2/apache2.conf を編集 LanguagePriorityをja(日本語)を最優先に変更。 cd /etc/apache2/sites-available/ cp -p default hoge (defaultは編集せずに、cpしたhogeを編集し、最終的にa2ensiteコマンドで有効化) sudo vi hoge AllowOverride None → AllowOverride All (.htaccessファイルによるディレクトリごとのアクセス制御を可能にする) RedirectMatch ^/$ /apache2-default/ → #RedirectMatch ^/$ /apache2-default/ ServerSignature On → ServerSignature Off (セキュリティ上) a2dissite default a2ensite hoge /etc/init.d/apache2 restart webページを表示すると、ディレクトリツリー表示 ※過去にapache1をインストールしていると、debianでのapacheのデフォルトページが表示。 sudo aptitude install libapache2-mod-php5 php5-gd php5-mcrypt PHPのインストール状況を確認するには、コンテンツに「 ? phpinfo() ? 」と書いた phpinfo.phpというテキストファイルを作成して、/var/wwwに保存してください。 ブラウザで「phpinfo.php」にアクセスすることで、PHPのインストール状況を確認することができます。 参考: http //takafam.com/pclog/2007/02/debianapache2.html http //golgotha.xrea.jp/archives/2005/12/debian_sarge_ap.html mysql sudo aptitude install mysql-server-5.0 php5-mysql phpmyadmin sudo vi /etc/php5/apache2/php.ini extension=mysql.so extension=gd.so の行頭のコメントアウト(;)を削除 mysql.trace_mode = OffをOnに変更 (※↑これはIEでxoopsのインストールをしようとした場合に 途中で止まってしまうことへの対処と考えられる。Mac(safari)では不要だった。) sudo cp /etc/phpmyadmin/config.inc.php /etc/phpmyadmin/config.inc.php.default sudo vi /etc/phpmyadmin/config.inc.php mysqladmin -u root password "yourpassword" でパスワード設定 http //-----/phpmyadmin で先ほど設定したパスワードでrootでログイン adduser xoopsであらかじめxoopsユーザを作っておく。 データベース新規作成:xoops_db ※注意:データベース作成の際には照合順序(文字コードのこと)を「ujis_japanese_ci」に変更するのを忘れない。 mysql5.0のデフォルトはUTF-8だが、xoopsはeucなので一部表示が文字化けしてしまう。 ユーザ追加:xoops_user グローバル特権は与えず、xoops_dbへのアクセス権限のみ付与 xoopsのhtmlフォルダの中身のファイルをアップロード(sftp、xoopsユーザで) chmod 777 uploads cache templates_c chmod 666 mainfile.php あとは http //-----/xoops でインストールウィザードに従って設定を行う。 http //support.sakura.ad.jp/support/manual/rs/xoop_man.shtml http //ma2mura.blog3.fc2.com/blog-entry-116.html /etc/init.d/mysql restart HDDの増設 (1)「dmesg」コマンドを実行して,増設したHDDのモデル名があることを確認 dmesg | grep hdc (増設したHDDがブートプロセスで認識されているかどうか確認。メーカ名が出ていればOK) (2)fdiskコマンドでLinuxファイルシステム(ext2)を作成する fdisk /dev/hdc pコマンドで現在のパーティション(無し)を確認 nコマンドで新パーティション作成(primaryでNo.1) pコマンドで作成したパーティション(1つ)を確認 wコマンドで書き込み終了 (3)パーティションをフォーマットする mkfs -t ext3 /dev/hdc1 (4)マウントするディレクトリを作成する mkdir /mnt/hdc mount /dev/hdc1 /mnt/hdc ls /mnt/hdc (5)再起動後も自動マウントできるようにする /dev/hdc1 /mnt/hdc ext3 defaults 1 3 最後の2つの数字は、 (1つ目) バックアップコマンド(dump)の対象とするか (2つ目) fsckによるファイルシステムチェックの順番(既に1,2が使われていたので3になった。) (6)一旦umountし、再起動後に自動マウントできているかを確認 mount (←現在のマウントポイント確認のため) umount /mnt/hdc mount (←現在のマウントポイント確認のため) shutdown -r now 参考:http //www.itmedia.co.jp/help/tips/linux/l0112.html http //www.thinkit.co.jp/free/compare/5/5/
https://w.atwiki.jp/hanieko/pages/21.html
Debian Linuxのディストリビューションのひとつ Debian系について
https://w.atwiki.jp/d4linux/pages/12.html
debian/lenny とりあえず、思いついたことをずらずらと箇条書き。 まとまった内容は、順次別ページに移動する予定。 debian/lenny 資料 タッチパネルの設定ドライバ キャリブレーション(未完) 参考サイト 今後の課題 グラフィック参考サイト 無線LAN その他セットアップに関すること これからの課題 資料 Debian 「lenny」 リリース情報 起動画面 dmesg の内容 タッチパネルの設定 ドライバ lenny デフォルトの状態で、タッチパネルには反応している。 一般的にタッチパネルを動作させるには、evtouchというツールを使っているようなので、とりあえずインストールしてみる。 aptitude install xserver-xorg-input-evtouch 続・工人舎 SH6KP10A に Debian lenny をインストール を参考に設定しようとしたが、calibrate.sh がエラーを出すのでうまく設定できない。この原因は後で追求することにして、トライアンドエラーで MinX MinY MaxX MaxY の4つの値を変更したところそれなりにポイントした場所が合うようになった。xorg.conf には、以下の二つのセクションを追加した。 Section"InputDevice" Identifier"touchscreen" Driver"evtouch" Option"Device" "/dev/input/event1" Option"DeviceName" "touchscreen" Option"MinX" "290" Option"MinY" "500" Option"MaxX" "8000" Option"MaxY" "7800" Option"ReportingMode" "Raw" Option"Emulate3Buttons" Option"Emulate3Timeout" "50" Option"SendCoreEvents" "On" EndSection Section"ServerLayout" Identifier"Main Layout" Screen"Default Screen" InputDevice"Generic Keyboard" InputDevice"touchscreen" InputDevice"Configured Mouse EndSection 設定ファイル全文:xorg.conf ※再起動すると挙動がおかしくなったので、上の値は参考になりません。 キャリブレーション(未完) タッチパネルの位置調整は、/usr/lib/xf86-input-evtouch/ に、cd して、calibrate.sh を実行すればいいらしい。 そのままでは、/empty_cursor.xbm が見つからないとかエラーが出て止まるので、 cp /usr/share/xf86-input-evtouch/empty_cursor.xbm / のようにして、empty_cursor.xbm をコピーしておくとエラーは回避できる(バグ?)。キャリブレーションの手順は、 /usr/share/doc/xserver-xorg-input-evtouch/README.calibration に詳しく書いてあるが、おおむね次の手順でやれば良いみたい。 1.準備 xorg.conf に Option "Calibrate" "1" を追加して、シングルユーザモードでログインするか、/etc/init.d/gdm stop して X サーバを停止する。 2.最大値、最小値の検出 スタイラスで画面の周辺をなぞることによってタッチパネルの検出値の最大値最小値を検出する。 ぐるりとなぞったら、Enter キーを押して少し待つと次のステップに。 3.微調整 画面に表示されているxのうちで赤くなっているものを順番にタップしていく。 左上→右上→中央→左下→右下 の順番。 右下が終わるとツールが終了して、out.txt が生成される。 4.設定 out.txt の内容を、xorg.conf のInputDevice セクションに挿入して、Option "Calibrate" "1" の行を削除する。 以上の手順を試してみたところ、最大値、最小値の段階で検出がうまくいっていないのか、キャリブレーション作業の結果が out.txt の内容に反映されていないよう(原因不明)。 参考サイト http //stz-softwaretechnik.com/~ke/touchscreen/evtouch.html http //d.hatena.ne.jp/autch/20070729 http //testzen.ty.land.to/item/260 http //xorg.freedesktop.org/wiki/XInputSpec 今後の課題 calibrate.sh の使い方 グラフィック 参考サイト http //mt-fuji.ddo.jp/~fujito/zaq/beginners/xwin/framebuffer.html http //testzen.ty.land.to/item/381 http //kmuto.jp/d/index.cgi/debian/xrandr.htm 無線LAN 現在非動作 チップは、Marvell SD8686 Wireless LAN SDIO Adapter デバイスドライバは無いわけでは無さそうhttp //homebrew.jp/show?page=993 http //packages.ubuntu.com/gutsy/i386/linux-ubuntu-modules-2.6.22-14-generic/filelist?lang=ja その他セットアップに関すること BIOS 画面で、ブートデバイスの優先順位が選択できるので、普通に外付け CD-ROM から起動可能 ハードは、外付けUSBハブに有線LANとCD-ROMドライブを接続(機種については、後ほど追記) インストーラのパーティションエディタで、NTFS パーティションのリサイズができるので、Vista 領域を少々縮めて空けた領域に debian をインストールした MBR に GRUB を入れると、オリジナルのブートローダが上書きされてしまうので、あらかじめ MBR のバックアップをしておくとよい。 MBR に上書きした GRUB でも、Vista 及び リカバリ用プログラムの起動が可能だった。 これからの課題 X.org の画面が 800x600 の解像度になってしまう(ペンディング予定) タッチパネルは反応しているが、キャリブレーションが合っていないため使えない(一応解決) bluetooth デバイスは動いているが、ペアリングの段階でエラー発生 無線 LAN の設定がまだ W-SIM がまだ オーディオもまだ コメントをどうぞ 名前
https://w.atwiki.jp/cupnes/pages/55.html
ビープ音を消す http //newapps.hatenablog.com/entry/2013/09/01/142639 こちらの記事では「/etc/modprobe.d/blacklist.conf」に追記することになっているが、 使用しているDebian 7.5ではこのパスにこのようなファイルはなく、代わりに /etc/modprobe.d/fbdev-blacklist.conf があり、このファイルに以下を追記したらビープ音を消すことができた。 blacklist pcspkr GNOME 端末のビープ音を消す メニューバーから [編集]-[プロファイルの設定] し、「全般」タブの「端末ベルを鳴らす」のチェックを外す 参考 GNOME端末のビープ音を無効にする GNU GLOBALのインストール http //www.gnu.org/software/global/download.html 公式サイトによるとDebianのパッケージは古いそうなので、ソースからビルド まずは、上記のページからtar.gzをダウンロード、展開。 その後、展開したディレクトリへ移動し、以下を実行 $ ./configure $ make $ sudo make install PowerTOPのインストール Debianのapt-getでインストールできるものはv2.0と古く、「--auto-tune」のオプションが使えない。 そこで、ソースをダウンロードして、ビルド・インストールする。 0.既にインストールしていれば、アンインストール $ sudo apt-get purge powertop 1.ソースをダウンロード、展開 ここからダウンロード https //01.org/powertop/downloads 以下のように展開する $ tar zxf powertop-2.6.1.tar.gz 1.1 ビルドに必要なパッケージのインストール $ sudo apt-get build-dep powertop 2.ビルド・インストール 展開したディレクトリへ移動 $ cd powertop-2.6.1/ ビルド・インストール $ ./configure $ make $ sudo make install 3.省電力の最適化 $ sudo powertop --auto-tune VMware Playerのインストール ダウンロード https //my.vmware.com/jp/web/vmware/free#desktop_end_user_computing/vmware_player/6_0 ここから以下をダウンロード VMware Player for Linux 32-bit ファイル名 VMware-Player-6.0.2-1744117.i386.bundle インストール $ sudo bash VMware-Player-6.0.2-1744117.i386.bundle インストール後、再起動 $ sudo reboot 起動時に"This program requires version 2.4.0 of the Protocol Buffer runtime library"のエラー 対処法 以下で起動するようにする $ LANG=C vmplayer 参考 http //www.xmisao.com/2013/02/17/vmplayer-error.html [未解決]初回アップデートに失敗 症状 ログ(/tmp/vmware-root/vmware-modconfig-*.log)を見ると以下のエラーが出ている Failed to build vmci 対処法2 最新版のLinuxカーネルを使わない 一度、VMware Playerをアンインストール Debianインストール時のカーネルで起動し、再度VMware Playerをインストール なお、初回起動時のアップデートでカーネルヘッダを要求されるので、 予め以下のコマンドでインストールしておく $ sudo apt-get install linux-headers-3.2.0-4-686-pae ※ インストールするカーネルヘッダのバージョンは、「uname -a」で調べること ※ パッケージ名は「apt-cache search headers --names-only」とかで調べる 対処法(失敗) VMware Playerの参照するソースコードを修正する http //www.2dd.it/it/articoli/operating_system/linux/english-debian-7-vmware-vthread-3-w110-failed-to-build-vmci-failed-to-execute-the-build-command-patch/#.U2Qzt1ds2Pc ここの記事の修正はすでになされていた アンインストール $ sudo vmware-installer -u PRODUCT 「PRODUCT」の名前は以下のコマンドで調べられる $ vmware-installer -l 参考 $ vmware-uninstall --help 「vmware-uninstall」というコマンドは現在は使わないほうが良い模様 ディスプレイマネージャの変更 $ sudo dpkg-reconfigure DM名 参考 http //kakurasan.ehoh.net/summary/choosedm.debian-ubuntu.distro-specific.html http //jehupc.exblog.jp/14870893/ sudoersへの追加 Debianでは/etc/sudoersに %sudoALL=(ALL ALL) ALL と書かれているため、sudoグループへ追加するだけで、 sudoを使用できる sudoグループへの追加は以下のコマンドで行える # adduser ユーザ名 sudo 参考 【debian】あるユーザーをsudoできるようにする at softelメモ sudoers、.bash_history、ntp、localeなど Linuxの設定あれこれ lvコマンドのインストール $ sudo apt-get install lv build-essentialのインストール $ sudo apt-get install build-essential awesomeのインストール(ソースコードからは保留) 以下でインストール $ sudo apt-get install awesome awesome-extra ビルドに必要なソフトウェアのインストール $ sudo apt-get build-dep awesome ダウンロード・インストール http //awesome.naquadah.org/ こちらからソースコードをダウンロード 展開後、READOMEに従う (make、make installでいける様子) Could NOT find Doxygen (missing DOXYGEN_EXECUTABLE) make時に以下のエラー -- Could NOT find Doxygen (missing DOXYGEN_EXECUTABLE) 以下で解決 $ sudo apt-get install doxygen Not generating API documentation. Missing ldoc make時に以下のエラー -- Not generating API documentation. Missing ldoc package gdk-pixbuf-2.0 not found -- package gdk-pixbuf-2.0 not found 以下で解決 $ sudo apt-get install libgdk-pixbuf2.0-dev package xcb-cursor not found -- package xcb-cursor not found 以下で解決 $ git clone git //anongit.freedesktop.org/xcb/util-cursor $ cd util-cursor/ $ git submodule update --init ./autogen.sh 24 ./autogen.sh autoreconf not found $ sudo apt-get install autoconf $ ./autogen.sh autoreconf Entering directory `. autoreconf configure.ac not using Gettext autoreconf running aclocal -I m4 configure.ac 18 error must install xorg-macros 1.6.0 or later before running autoconf/autogen m4/xcb_util_common.m4 8 XCB_UTIL_COMMON is expanded from... configure.ac 18 the top level autom4te /usr/bin/m4 failed with exit status 1 aclocal /usr/bin/autom4te failed with exit status 1 autoreconf aclocal failed with exit status 1 $ sudo apt-get install xutils-dev $ ./autogen.sh autoreconf Entering directory `. autoreconf configure.ac not using Gettext autoreconf running aclocal -I m4 configure.ac 18 warning AC_PROG_LIBTOOL is m4_require d but not m4_defun d m4/xcb_util_common.m4 8 XCB_UTIL_COMMON is expanded from... configure.ac 18 the top level autoreconf configure.ac tracing configure.ac 18 warning AC_PROG_LIBTOOL is m4_require d but not m4_defun d m4/xcb_util_common.m4 8 XCB_UTIL_COMMON is expanded from... configure.ac 18 the top level autoreconf configure.ac not using Libtool autoreconf running /usr/bin/autoconf configure.ac 18 warning AC_PROG_LIBTOOL is m4_require d but not m4_defun d m4/xcb_util_common.m4 8 XCB_UTIL_COMMON is expanded from... configure.ac 18 the top level configure 4378 error possibly undefined macro AC_PROG_LIBTOOL If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. autoreconf /usr/bin/autoconf failed with exit status 1 ソースからインストールするのはあきらめた gitのインストール $ sudo apt-get install git GNU Screenのインストール(ソースコードから) ビルドに必要なソフトウェアのインストール $ sudo apt-get build-dep screen ダウンロード・インストール http //www.gnu.org/software/screen/ こちらからソースコードをダウンロード 展開後、INSTALLに従う (./configure、make、make installでいける様子) 開発版をインストールする場合 git cloneしたディレクトリにあるmktar.plを実行すると tarボールが作成されるので、それを任意のディレクトリに展開 configure.inが用意されているので、これのあるディレクトリで autoconfを実行 また、config.h.inを生成するために autoheaderを実行 その後、 ./configure、make、make install なお、./configure時に「--enable-colors256」のオプションをつけておくと 256色のカラー表示ができるようになる 参考: http //yanor.net/wiki/?Mac%2Fscreen%2F%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%2FMacOSX10.6 http //d.hatena.ne.jp/s-edy/20080901/1220266372 http //sharl.haun.org/autoconf.html http //d.hatena.ne.jp/i_s/20091029/1256821721 emacsのインストール(ソースコードから) http //d.hatena.ne.jp/cupnes/20130401/1364806604
https://w.atwiki.jp/anthony/pages/28.html
debian-minirootをセットアップ 自力で玄箱PRO仕様のDebian化はなかなか敷居が高そうなのでsushi-k氏が作成されたdebian-minirootを使用します。作業前には事前にsushi-k日誌2で「KURO-BOX/PRO Debian化決定版?」をよく読み、必要な「gnutar_kuropro.gz」「debian_kit.tar.gz」「hddrootfs.tar.gz」「uImage.buffalo」の4ファイルを入手しておきます。 sushi-k氏のdebian-minirootを準備する \\kurobox-pro\shareへdebian_kit.tar.gzとgnutar_kuropro.gzを転送 GNU tarの導入 ~ # cd /mnt/disk1 /mnt/disk1 # rm /bin/tar /mnt/disk1 # gzip -dc gnutar_kuropro.gz /bin/tar /mnt/disk1 # chmod a+x /bin/tar OABIなmkfs.ext3を含むDebian化キット導入 /mnt/disk1 # tar xvzpf debian_kit.tar.gz -C / \\kurobox-pro\mtd deviceへhddrootfs.tar.gzとuImage.buffaloとChangeMeDevHDDとChangeMyUbootEnvを転送 HDDを初期化する ~ # /usr/local/bin/DiskDelete.sh 背面INITボタンを押してHDD環境をセットアップする 背面スイッチを長押しする 処理が動いているか不安なのでtopでモニタする ~ # top オレンジのランプが消えたら初期化終了なので一度シャットダウンする ~ # shutdown -h 電源投入 Orion1 CPU = Low === KURO U-Boot. === ** LOADER ** ** KUROBOX BOARD KURO_BOX LE (CFG_ENV_ADDR=fffff000) U-Boot 1.1.1 (Apr 10 2007 - 18 10 08) Marvell version 1.12.1 - TINY DRAM CS[0] base 0x00000000 size 128MB DRAM Total size 128MB [256kB@fffc0000] Flash 256 kB Addresses 20M - 0M are saved for the U-Boot usage. Mem malloc Initialization (20M - 16M) Done NAND 256 MB Soc 88F5182 A2 CPU ARM926 (Rev 0) running @ 500Mhz Orion 1 streaming disabled SysClock = 250Mhz , TClock = 166Mhz USB 0 host mode USB 1 host mode PCI 0 PCI Express Root Complex Interface PCI 1 Conventional PCI, speed = 33000000 Net egiga0 [PRIME] Using 88E1118 phy hit any key to switch tftp boot. Hit any key to stop autoboot 0 system_bootend Hit any key to stop autoboot 0 Reset IDE Marvell Serial ATA Adapter Integrated Sata device found Device 0 OK Model Hitachi HDT725050VLA360 Firm V56OA52A Ser# VFB400R4C28DDA Type Hard Disk Supports 48-bit addressing Capacity 476940.0 MB = 465.7 GB (976773168 x 512) Using device ide0, partition 1 Loading from block device ide device 0, partition 1 Name hda1 Type U-Boot File /uImage.buffalo 1717540 bytes read stop_sound ## Booting image at 00100000 ... Image Name Linux-2.6.12.6-mda1 Created 2007-04-22 7 17 43 UTC Image Type ARM Linux Kernel Image (uncompressed) Data Size 1717476 Bytes = 1.6 MB Load Address 00008000 Entry Point 00008000 Verifying Checksum ... OK OK Starting kernel ... arg console=ttyS0,115200 root=/dev/sda2 rw panic=5 BOOTVER=1.09 CONFIG_KUROBOX_PLATFORM CONFIG_KUROBOX_KUROBOX --- Uncompressing Linux....................................................... ........................................................ done, booting the kernel. Linux version 2.6.12.6-mda1 (root@kurobox) (gcc version 4.1.2 20061115 (pr erelease) (Debian 4.1.1-21)) #2 Sun Apr 22 16 16 39 JST 2007 CPU ARM926EJ-Sid(wb) [41069260] revision 0 (ARMv5TEJ) CPU0 D VIVT write-back cache CPU0 I cache 32768 bytes, associativity 1, 32 byte lines, 1024 sets CPU0 D cache 32768 bytes, associativity 1, 32 byte lines, 1024 sets Machine MV-88fxx81 Using UBoot passing parameters structure Sys Clk = 250000000, Tclk = 166664740 Memory policy ECC disabled, Data cache writeback Built 1 zonelists Kernel command line console=ttyS0,115200 root=/dev/sda2 rw panic=5 BOOTVE R=1.09 PID hash table entries 1024 (order 10, 16384 bytes) Console colour dummy device 80x30 Dentry cache hash table entries 32768 (order 5, 131072 bytes) Inode-cache hash table entries 16384 (order 4, 65536 bytes) Memory 128MB 0MB 0MB 0MB = 128MB total Memory 126208KB available (2987K code, 421K data, 108K init) Mount-cache hash table entries 512 CPU Testing write buffer coherency ok NET Registered protocol family 16 serial_initialize_ttyS1 (Debug) ttyS1 is initialized. config_device_cs Error Unknown board CPU Interface ------------- SDRAM_CS0 ....base 00000000, size 128MB SDRAM_CS1 ....disable SDRAM_CS2 ....disable SDRAM_CS3 ....disable PEX0_MEM ....base e0000000, size 128MB PEX0_IO ....base f2000000, size 1MB PCI0_MEM ....base e8000000, size 128MB PCI0_IO ....base f2100000, size 1MB INTER_REGS ....base f1000000, size 1MB DEVICE_CS0 ....base fa000000, size 2MB DEVICE_CS1 ....base f4000000, size 32MB DEVICE_CS2 ....base fa800000, size 1MB DEV_BOOCS ....base ff800000, size 8MB CRYPTO ENG ....no such Flash bankwidth 1, base ff800000, size 400000 KUROBOX FLASH size 4096[KB] Marvell Development Board (LSP Version 1.10.3.patch5_DB_NAS)-- KUROBOX_B OARD_KUROBOX Soc 88F5182 A2 Detected Tclk 166664740 and SysClk 250000000 Marvell USB EHCI Host controller #0 c04d5b00 Marvell USB EHCI Host controller #1 c04d5a40 pexBarOverlapDetect winNum 2 overlap current 0 mvPexInit Warning Bar 2 size is illigal it will be disabled please check Pex and CPU windows configuration PCI bus0 Fast back to back transfers enabled PCI bus1 Fast back to back transfers enabled SCSI subsystem initialized usbcore registered new driver usbfs usbcore registered new driver hub Use the XOR engines (offloading) for enhancing the following functions o RAID 5 Xor calculation o kernel memcpy o kenrel memzero o copy user to/from kernel buffers Number of XOR engines to use 2 cesadev_init(c0012240) Fast Floating Point Emulator V0.9 (c) Peter Teichmann. inotify device minor=63 JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc. SGI XFS with no debug enabled Serial 8250/16550 driver $Revision 1.90 $ 4 ports, IRQ sharing disabled ttyS0 at MMIO 0x0 (irq = 3) is a 16550A ttyS1 at MMIO 0x0 (irq = 4) is a 16550A io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered RAMDISK driver initialized 3 RAM disks of 32768K size 1024 blocksize loop loaded (max 8 devices) Marvell Gigabit Ethernet Driver egiga o Ethernet descriptors in DRAM o DRAM SW cache-coherency o Checksum offload enabled o Loading network interface ** egiga_init_module (6) eth0 Intergrated Sata device found scsi0 Marvell SCSI to SATA adapter scsi1 Marvell SCSI to SATA adapter Vendor Hitachi Model HDT725050VLA360 Rev V56O Type Direct-Access ANSI SCSI revision 03 SCSI device sda 976773168 512-byte hdwr sectors (500108 MB) SCSI device sda drive cache write back SCSI device sda 976773168 512-byte hdwr sectors (500108 MB) SCSI device sda drive cache write back sda sda1 sda2 sda3 sda4 Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0 physmap flash device 400000 at ff800000 Found SST 39LF020 phys_mapped_flash Found 1 x8 devices at 0x0 in 8-bit bank number of JEDEC chips 1 cfi_cmdset_0002 Disabling erase-suspend-program due to code brokenness. RedBoot partition parsing not available NAND device Manufacturer ID 0x20, Chip ID 0xda (ST Micro NAND 256MiB 3, 3V 8-bit) Scanning device for bad blocks Bad eraseblock 854 at 0x06ac0000 Using static partition definition Creating 3 MTD partitions on "nand_mtd" 0x00000000-0x00400000 "uImage" 0x00400000-0x04400000 "rootfs" 0x04400000-0x10000000 "extra" usbmon debugs is not available ehci_platform ehci_platform.4523 EHCI Host Controller ehci_platform ehci_platform.4523 new USB bus registered, assigned bus num ber 1 ehci_platform ehci_platform.4523 irq 17, io mem 0x00000000 ehci_platform ehci_platform.4523 park 0 ehci_platform ehci_platform.4523 USB 0.0 initialized, EHCI 1.00, driver 1 0 Dec 2004 hub 1-0 1.0 USB hub found hub 1-0 1.0 1 port detected ehci_platform ehci_platform.16781 EHCI Host Controller ehci_platform ehci_platform.16781 new USB bus registered, assigned bus nu mber 2 ehci_platform ehci_platform.16781 irq 12, io mem 0x00000000 ehci_platform ehci_platform.16781 park 0 ehci_platform ehci_platform.16781 USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004 hub 2-0 1.0 USB hub found hub 2-0 1.0 1 port detected USB Universal Host Controller Interface driver v2.2 Initializing USB Mass Storage driver... usbcore registered new driver usb-storage USB Mass Storage support registered. usbcore registered new driver usbhid drivers/usb/input/hid-core.c v2.01 USB HID core driver mice PS/2 mouse device common for all mice md raid0 personality registered as nr 2 md raid1 personality registered as nr 3 md raid5 personality registered as nr 4 raid5 measuring checksumming speed arm4regs 309.200 MB/sec 8regs 269.200 MB/sec 32regs 200.000 MB/sec raid5 using function arm4regs (309.200 MB/sec) md md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27 Buffalo Platform Linux Driver(Light) 0.01 installed. MICON ctrl (C) BUFFALO INC. V.1.00 installed. Kernel event proc (C) BUFFALO INC. V.1.00 installed. MICON V2 (C) BUFFALO INC. V.1.00 installed. NET Registered protocol family 2 IP routing cache hash table of 1024 buckets, 8Kbytes TCP established hash table entries 8192 (order 4, 65536 bytes) TCP bind hash table entries 8192 (order 3, 32768 bytes) TCP Hash tables configured (established 8192 bind 8192) NET Registered protocol family 1 NET Registered protocol family 17 md Autodetecting RAID arrays. md autorun ... md ... autorun DONE. kjournald starting. Commit interval 5 seconds EXT3 FS on sda2, internal journal EXT3-fs recovery complete. EXT3-fs mounted filesystem with ordered data mode. VFS Mounted root (ext3 filesystem). Freeing init memory 108K INIT version 2.86 booting Activating swap...Adding 136544k swap on /dev/sda3. Priority -1 extents 1 done. Checking root file system...fsck 1.40-WIP (14-Nov-2006) /dev/sda2 has gone 36051 days without being checked, check forced. /dev/sda2 8298/367616 files (0.8% non-contiguous), 204892/2939892 blocks done. EXT3 FS on sda2, internal journal Setting the system clock.. Cleaning up ifupdown.... Loading device-mapper support. Checking file systems...fsck 1.40-WIP (14-Nov-2006) /dev/sda1 recovering journal /dev/sda1 clean, 12/7056 files, 6718/56196 blocks done. Setting kernel variables...done. Mounting local filesystems...kjournald starting. Commit interval 5 second s EXT3 FS on sda1, internal journal EXT3-fs mounted filesystem with ordered data mode. done. Activating swapfile swap...done. Setting up networking.... Configuring network interfaces...eth0 link down done. eth0 link up 5 , full duplex 5 , speed 100 Mbps 5 INIT Entering runlevel 2 Starting system log daemon syslogd. Starting kernel log daemon klogd. * Not starting internet superserver no services enabled. Starting OpenBSD Secure Shell server sshd. Starting periodic command scheduler crond. Debian GNU/Linux 4.0 kurobox ttyS0 kurobox login root Password Last login Fri Mar 9 16 42 48 2007 from localhost.localdomain on pts/0 Linux kurobox 2.6.12.6-mda1 #2 Sun Apr 22 16 16 39 JST 2007 armv5tejl The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. kurobox ~# ホスト名をKUROBOX-PROに変更する(あとで再起動したあとに有効になる) kurobox ~# vi /etc/hostname #kurobox KUROBOX-PRO kurobox ~# vi /etc/hosts #127.0.0.1 localhost.localdomain localhost kurobox 127.0.0.1 localhost.localdomain localhost KUROBOX-PRO パーミッションの設定を追加する chmod 666 /dev/tty chmod 4755 /bin/ping NANDブート時と同じ/mntの構成にしておく mkdir /mnt/authtest mkdir /mnt/boot mkdir /mnt/disk1 mkdir /mnt/mtd mkdir /mnt/nfs mkdir /mnt/ram mkdir /mnt/root mkdir /mnt/rootfs mkdir /mnt/usbdisk1 mkdir /mnt/usbdisk2 ブートしたときに/dev/sda4を/mnt/disk1にマウントするようにfstabを編集する kurobox ~# vi /etc/fstab /dev/sda4/mnt/disk1ext3defaults11 ネットワークの設定をDHCPに戻す kurobox ~# vi etc/network/interfaces # Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or # /usr/share/doc/ifupdown/examples for more information. auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp kurobox ~# ifdown eth0 kurobox ~# ifup eth0 一度リブートしてみる shutdown -h now コマンドでパワーダウンだけで終わってしまうので電源断できるようにする kurobox ~# vi /etc/default/halt #HALT=poweroff HALT=halt 一度シャットダウンしてみる kurobox ~# shutdown -h now 最終更新日:2007-05-29
https://w.atwiki.jp/anthony/pages/36.html
Debian Wheezyのインストール前準備 以前から玄箱PROはDebian化して運用していたのですが、この度家庭内LAN上のLinkStationがHDD故障でトラブルに逢ったことが原因で、色々と整理を始めていました。 いつも分からないコマンドがあるとネットで調べていたのですが、色々なところに書いてあるのに私の環境では使えないものがあることに気が付きました。 例えば apt-get autoremove 試しにinstallしては不要なuninstallなどしていたので、deborphanなどで依存関係を整理して削除などしていたのですが、こんな便利なものがあるなら是非使いたい。 Debian etch 4.0が古いのが問題で、最新のDebian wheezy 7.0まで上げればよいのだと思い知り、更にネットで「kurobox pro wheezy」で調べてみると"出来る"ことが分かったので、思い切って上げてみることにしました。 新しいHDDに入れ替えて新規にDebian環境をセットアップ おそらくこれが一番トラブルが少ないであろうということで、新しいHDDに入れ替えてセットアップすることにしました。 使うのはノートPCのSSD化などで余っていた2.5inch 250G 5200rpmのHDDです。 玄箱PROはHDDのマウンターに2.5inch用のネジ穴が用意されているので、別途マウンターを用意する必要もありません。 シリアルコンソール必須です。私が使っているのはUP12C USB PDC Converterというやつです。 Windows7用のドライバー(U232-13.2.98.130315.zip)をインストールして準備完了。 TeraTermのSerial Port設定 Baud rate 115200 bps Data 8 bit Parity none Stop 1 bit Flow contro none 玄箱PROの電源ON 作業開始 Orion1 CPU = Low === KURO U-Boot. === ** LOADER ** ** KUROBOX BOARD KURO_BOX LE (CFG_ENV_ADDR=fffff000) U-Boot 1.1.1 (Apr 10 2007 - 18 10 08) Marvell version 1.12.1 - TINY DRAM CS[0] base 0x00000000 size 128MB DRAM Total size 128MB [256kB@fffc0000] Flash 256 kB Addresses 20M - 0M are saved for the U-Boot usage. Mem malloc Initialization (20M - 16M) Done NAND 256 MB Soc 88F5182 A2 CPU ARM926 (Rev 0) running @ 500Mhz Orion 1 streaming disabled SysClock = 250Mhz , TClock = 166Mhz USB 0 host mode USB 1 host mode PCI 0 PCI Express Root Complex Interface PCI 1 Conventional PCI, speed = 33000000 Net egiga0 [PRIME] Using 88E1118 phy hit any key to switch tftp boot. Hit any key to stop autoboot 0 system_bootend Hit any key to stop autoboot 3 ここでEnteryキーを押下してストップ 以下の5行を順番にコピペして貼り付け setenv bootargs_root root=/dev/mtdblock2 rw panic=5 setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver) setenv bootcmd nboot $(default_kernel_addr) 0 $(nand_uImage_offset) ;setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver); bootm $(default_kernel_addr) setenv nand_boot yes boot 続き Marvell setenv bootargs_root root=/dev/mtdblock2 rw panic=5 Marvell setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver) Marvell setenv bootcmd nboot $(default_kernel_addr) 0 $(nand_uImage_offset) ;setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver); bootm $(default_kernel_addr) Marvell setenv nand_boot yes Marvell boot Loading from device 0 NULL at 0xfa000000 (offset 0x20000) Image Name Linux-2.6.12.6-arm1 Created 2007-04-10 13 45 13 UTC Image Type ARM Linux Kernel Image (uncompressed) Data Size 1736548 Bytes = 1.7 MB Load Address 00008000 Entry Point 00008000 stop_sound ## Booting image at 00100000 ... Image Name Linux-2.6.12.6-arm1 Created 2007-04-10 13 45 13 UTC Image Type ARM Linux Kernel Image (uncompressed) Data Size 1736548 Bytes = 1.7 MB Load Address 00008000 Entry Point 00008000 Verifying Checksum ... OK OK Starting kernel ... arg console=ttyS0,115200 root=/dev/mtdblock2 rw panic=5 BOOTVER=1.091 CONFIG_KUROBOX_PLATFORM CONFIG_KUROBOX_KUROBOX --- Uncompressing Linux................................................................................................................. done, booting the kernel. Linux version 2.6.12.6-arm1 (root@dev-hara) (gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2)) #27 Tue Apr 10 22 47 16 JST 2007 CPU ARM926EJ-Sid(wb) [41069260] revision 0 (ARMv5TEJ) CPU0 D VIVT write-back cache CPU0 I cache 32768 bytes, associativity 1, 32 byte lines, 1024 sets CPU0 D cache 32768 bytes, associativity 1, 32 byte lines, 1024 sets Machine MV-88fxx81 Using UBoot passing parameters structure Sys Clk = 250000000, Tclk = 166664740 Memory policy ECC disabled, Data cache writeback Built 1 zonelists Kernel command line console=ttyS0,115200 root=/dev/mtdblock2 rw panic=5 BOOTVER=1.091 PID hash table entries 1024 (order 10, 16384 bytes) Console colour dummy device 80x30 Dentry cache hash table entries 32768 (order 5, 131072 bytes) Inode-cache hash table entries 16384 (order 4, 65536 bytes) Memory 128MB 0MB 0MB 0MB = 128MB total Memory 126208KB available (3037K code, 426K data, 112K init) Mount-cache hash table entries 512 CPU Testing write buffer coherency ok NET Registered protocol family 16 serial_initialize_ttyS1 (Debug) ttyS1 is initialized. config_device_cs Error Unknown board CPU Interface ------------- SDRAM_CS0 ....base 00000000, size 128MB SDRAM_CS1 ....disable SDRAM_CS2 ....disable SDRAM_CS3 ....disable PEX0_MEM ....base e0000000, size 128MB PEX0_IO ....base f2000000, size 1MB PCI0_MEM ....base e8000000, size 128MB PCI0_IO ....base f2100000, size 1MB INTER_REGS ....base f1000000, size 1MB DEVICE_CS0 ....base fa000000, size 2MB DEVICE_CS1 ....base f4000000, size 32MB DEVICE_CS2 ....base fa800000, size 1MB DEV_BOOCS ....base ff800000, size 8MB CRYPTO ENG ....no such Flash bankwidth 1, base ff800000, size 400000 KUROBOX FLASH size 4096[KB] Marvell Development Board (LSP Version 1.10.3.patch5_DB_NAS)-- KUROBOX_BOARD_KUROBOX Soc 88F5182 A2 Detected Tclk 166664740 and SysClk 250000000 Marvell USB EHCI Host controller #0 c04e4b00 Marvell USB EHCI Host controller #1 c04e4a40 pexBarOverlapDetect winNum 2 overlap current 0 mvPexInit Warning Bar 2 size is illigal it will be disabled please check Pex and CPU windows configuration PCI bus0 Fast back to back transfers enabled PCI bus1 Fast back to back transfers enabled SCSI subsystem initialized usbcore registered new driver usbfs usbcore registered new driver hub Use the XOR engines (offloading) for enhancing the following functions o RAID 5 Xor calculation o kernel memcpy o kenrel memzero o copy user to/from kernel buffers Number of XOR engines to use 2 cesadev_init(c00122e4) Fast Floating Point Emulator V0.9 (c) Peter Teichmann. inotify device minor=63 JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc. SGI XFS with no debug enabled Serial 8250/16550 driver $Revision 1.90 $ 4 ports, IRQ sharing disabled ttyS0 at MMIO 0x0 (irq = 3) is a 16550A ttyS1 at MMIO 0x0 (irq = 4) is a 16550A io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered RAMDISK driver initialized 3 RAM disks of 32768K size 1024 blocksize loop loaded (max 8 devices) Marvell Gigabit Ethernet Driver egiga o Ethernet descriptors in DRAM o DRAM SW cache-coherency o Checksum offload enabled o Loading network interface ** egiga_init_module (10) eth0 Intergrated Sata device found scsi0 Marvell SCSI to SATA adapter scsi1 Marvell SCSI to SATA adapter Vendor Hitachi Model HTS542525K9SA00 Rev BBFO Type Direct-Access ANSI SCSI revision 03 SCSI device sda 488397168 512-byte hdwr sectors (250059 MB) SCSI device sda drive cache write back SCSI device sda 488397168 512-byte hdwr sectors (250059 MB) SCSI device sda drive cache write back sda Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0 physmap flash device 400000 at ff800000 Found SST 39LF020 phys_mapped_flash Found 1 x8 devices at 0x0 in 8-bit bank number of JEDEC chips 1 cfi_cmdset_0002 Disabling erase-suspend-program due to code brokenness. RedBoot partition parsing not available Debug nand_scan nand_flash_ids[i].pagesize is exist Debug nand_scan mtd- erasesize=0x00020000 Debug nand_scan mtd- oobblock=0x00000800 Debug nand_scan mtd- oobsize=0x00000040 NAND device Manufacturer ID 0x20, Chip ID 0xda (ST Micro NAND 256MiB 3,3V 8-bit) Scanning device for bad blocks Bad eraseblock 854 at 0x06ac0000 Using static partition definition Creating 3 MTD partitions on "nand_mtd" 0x00000000-0x00400000 "uImage" 0x00400000-0x04400000 "rootfs" 0x04400000-0x10000000 "extra" usbmon debugs is not available ehci_platform ehci_platform.4523 EHCI Host Controller ehci_platform ehci_platform.4523 new USB bus registered, assigned bus number 1 ehci_platform ehci_platform.4523 irq 17, io mem 0x00000000 ehci_platform ehci_platform.4523 park 0 ehci_platform ehci_platform.4523 USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004 hub 1-0 1.0 USB hub found hub 1-0 1.0 1 port detected ehci_platform ehci_platform.16781 EHCI Host Controller ehci_platform ehci_platform.16781 new USB bus registered, assigned bus number 2 ehci_platform ehci_platform.16781 irq 12, io mem 0x00000000 ehci_platform ehci_platform.16781 park 0 ehci_platform ehci_platform.16781 USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004 hub 2-0 1.0 USB hub found hub 2-0 1.0 1 port detected USB Universal Host Controller Interface driver v2.2 Initializing USB Mass Storage driver... usbcore registered new driver usb-storage USB Mass Storage support registered. usbcore registered new driver usbhid drivers/usb/input/hid-core.c v2.01 USB HID core driver mice PS/2 mouse device common for all mice md raid0 personality registered as nr 2 md raid1 personality registered as nr 3 md raid5 personality registered as nr 4 raid5 measuring checksumming speed arm4regs 304.000 MB/sec 8regs 215.200 MB/sec 32regs 249.200 MB/sec raid5 using function arm4regs (304.000 MB/sec) md md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27 Buffalo Platform Linux Driver(Light) 0.01 installed. MICON ctrl (C) BUFFALO INC. V.1.00 installed. Kernel event proc (C) BUFFALO INC. V.1.00 installed. MICON V2 (C) BUFFALO INC. V.1.00 installed. NET Registered protocol family 2 IP routing cache hash table of 1024 buckets, 8Kbytes TCP established hash table entries 8192 (order 4, 65536 bytes) TCP bind hash table entries 8192 (order 3, 32768 bytes) TCP Hash tables configured (established 8192 bind 8192) NET Registered protocol family 1 NET Registered protocol family 17 md Autodetecting RAID arrays. md autorun ... md ... autorun DONE. Empty flash at 0x00df85f8 ends at 0x00df8800 VFS Mounted root (jffs2 filesystem). Freeing init memory 112K --- rcStart (NANDroot) --- ===== Starting MountSystemFolders ===== mounting procfs ... [Success] mounting sysfs ... [Success] mouting usbfs ... [Success] remouting rootfs ... [Success] mounting all devices ... [Success] ===== Starting checkroot.sh ===== rm /var/lock/perfmon is a directory rm /var/lock/printing is a directory rm /var/lock/subsys is a directory [Success] ===== Starting Kevent.sh ===== [Success] ===== Starting mount_share.sh ===== Mounting /dev/sda on /mnt/disk1 as a xfs file system. XFS bad magic number XFS SB validate failed mount Mounting /dev/sda on /mnt/disk1 failed Invalid argument Failed. Mounting /dev/sda on /mnt/disk1 as a ext3 file system. mount Mounting /dev/sda on /mnt/disk1 failed Invalid argument Failed. Mounting /dev/mtd3 on /mnt/mtd as a jffs2 file system. Success. [Success] ===== Starting sethostname.sh ===== hostname is setted to KUROBOX-PRO [Success] ===== Starting networking.sh ===== create network files.. IP=[dhcp], netmask=[], dgw=[], dns1=[], dns2=[] killall dhcpcd no process killed route SIOC[ADD|DEL]RT No such process Configuration network interface lo eth0 requesting DHCP tout=30[s] eth0 link down eth0 link up 5 , full duplex 5 , speed 100 Mbps 5 /etc/dhcpc/dhcpcd.exe /etc/dhcpc/dhcpcd-eth0.info up dhcpcd.exe interface eth0 has been configured with old IP=192.168.3.50 hostname is setted to KUROBOX-PRO [Success] ===== Starting httpd.sh ===== [Success] ===== Starting telnet.sh ===== [Success] ===== Starting inetd.sh ===== [Success] ===== Starting smb.sh ===== $Starting SMB services $Starting NMB services [Success] ===== Starting clientUtil_servd.sh ===== Starting clientUtil_server starting on eth0 [Success] ===== Starting bootcomplete.sh ===== [Success] ===== Starting FanController.sh ===== [Success] ===== Starting boss.sh ===== ... .. -~~(~~ .~ shDBDhz+(-. .~+sDDBNBDhhszDBNNNNBNNNBDs - ~sBNNNNNNNNNNNNNNNNNNNNNNNNNBs -=DNNBNNNNNNNNNNNNNNNNNBNNNNNNNNBz .~zNNNNNNNNNNNNNNNNNNNNNNNNNNBNNNNNNNz~ ~hBNNNNBNNNNNNNNNNNNNNNNNNNNNNNNNNNNNND+ (hNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNBs- .~zNNNNNNNNNNNNNNNNNNNNNNNBNNNNNNBNNBNNNNNNBs ~sBNNNNNNNNNNNNNNNNNNNNNNNNNNNNBNNNNNNNNNNNNNz (+DNNNNNNNNNNNNNNNNNNNNNNDzNNNNNhzDNNBNNNNNNNNBs (sNNNNNNNNNNNNNNNNNNNNNNB=~hNNNN=~(sDNNNNNNNNNND (+DNNNNNNNNNNNNNNNNNNNNNNs .=NNNNz- (zDNNNNNNNNNz ~=BNNNNNNNNNNNNNNNNNNNNND- .=BNNNN . .(hNNNNNNNNB ~sNNNNNNNNNNNNNNNNNNNNND+. .+BNNNN+ ~sBNNNNNNN (zNNNNNNNNNNNNNNNNNNNNND ..+BNBNB=- .+BNNNNNNh (zNNNNNNNNNNNNNNNNNNNBB= . hNBBNs+- +DNNNBND (sNNNNNNNNNNNNNNNNNNNND( -DhDBN+ - . =NNNNNB ~+DNNBNNNNNNNNNNNNNNNNz =D=Dhh+( . ~DBNNNB ~(sNNNNNNNNNNNNNNNNNNNz. -hs(zz+ ( . .=NNNNN ~=NNBBBBNNNNNNNNNNNNB= ==-=+s((~. .~BNNNB ~=Nhs +++hNNNNNNNNBz - .~=-.s(+-(- hBNND =Ds+hz( ~hNNNNNNND+ ..-+ .-((( ~ ... -hNNNNDs ~+z(BN=. . BNNNNBhhDD=+ ~. ~-=shBBDhz+( -sBNNNBBNBz ~(=z(BD- ~~hBNNNs~-( zDDs+~(shzssszDBNDh= sBNNNNNNNBN ~~+s z=.-zh~sNNND . . zhhh==shDBNNNNNNNBDDNNNNNNNNNh ~~ ss+ .zBBs~zND+ ..-+zDBNNNNNNNNNNNhzNNNNNNNNND+ ~~(=h +DBz-sBs~ . (BBNNNNNNNNNz- BBNNBNNND= ~(~ zss(( (z sD+ ~DNNNNNNNNNz~ sNNNNNNDs ~(=Ds= ...-(h . . .. BNNNNNNNNz~ -hNNNBh ~(hNs(. =- .=BNNNNNBNs- .(hs== BNz~ . .(hBNNBDz .~ - -hNNh(. .. . (++~ . - . hBNB+ -+( . .- . zDNz( . ~+ - .. . .-. ..~(-. . . .~+(. .. -- . . . + ~ ~. ..... .- . ---(~~~( ~. .. . .((--- -~~(~ . . +s=(- -(+. Let s start a KURO-BOX! .... .(hBDzDD=. and have a fun time... .. .. . sDh+. . .. . ..-- . .. .. ... ....... . . .. .. - .. ... [Success] KUROUTOSHIKOU KUROBOX Series KUROBOX/PRO(KOSHO) KUROBOX-PRO login root, kuroadminでログイン sdaとして識別されている新しい2.5inchのHDDでパーティションを作成する BusyBox v1.1.1 (2007.04.06-12 02+0000) Built-in shell (ash) Enter help for a list of built-in commands. ~ # fdisk /dev/sda The number of cylinders for this disk is set to 30401. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help) n Command action e extended p primary partition (1-4) p Partition number (1-4) 1 First cylinder (1-30401, default 1) Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-30401, default 30401) Using default value 30401 Command (m for help) w The partition table has been altered! Calling ioctl() to re-read partition table. SCSI device sda 488397168 512-byte hdwr sectors (250059 MB) SCSI device sda drive cache write back sda sda1 SCSI device sda 488397168 512-byte hdwr sectors (250059 MB) SCSI device sda drive cache write back sda sda1 Syncing disks. 次にファイルシステムの作成 ~ # mkfs.ext2 /dev/sda1 mke2fs 1.27 (8-Mar-2002) Filesystem label= OS type Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 30539776 inodes, 61049000 blocks 3052450 blocks (5.00%) reserved for the super user First data block=0 1864 block groups 32768 blocks per group, 32768 fragments per group 16384 inodes per group Superblock backups stored on blocks 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872 Writing inode tables done Writing superblocks and filesystem accounting information done This filesystem will be automatically checked every 35 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. 続いてマウントして必要なファイルを取得 ~ # mount -t ext2 /dev/sda1 /mnt/disk1 ~ # cd /mnt/disk1 /mnt/disk1 # wget http //ftp.jp.debian.org/debian/dists/wheezy/main/installer-ar mel/current/images/orion5x/network-console/buffalo/kuroboxpro/config-debian wget ftp.jp.debian.org Unknown host と思いきや Unknown Host、、、あれ?ネットワークつながっていない?名前解決できていないのかな? 他の参考サイトではnsswitch.confを書き換えていたので試してみる。 /mnt/disk1 # vi /etc/nsswitch.conf hosts files ↓dnsを追加 hosts files dns で再起動 /mnt/disk1 # reboot /mnt/disk1 # ----- rcDown ----- ===== Starting shutdown_start.sh ===== [Success] ===== Starting shutdown_proc.sh ===== ===== Starting clientUtil_servd.sh ===== Stop clientUtil_server [Success] ===== Starting smb.sh ===== $Shutting down SMB services killall Could not kill pid 658 No such process $Shutting down NMB services [Failed ] ===== Starting networking.sh ===== Deconfiguration network interface lo eth0 killall dhcpcd no process killed [Success] ===== Starting Kevent.sh ===== [Success] ===== Starting FanController.sh ===== Stopping a fan ........... [Success] [Success] ===== Starting umount_disk.sh ===== [Success] The system is going down NOW !! Sending SIGTERM to all processes. Sending SIPlease stand by while rebooting the system. md stopping all md devices. md md0 switched to read-only mode. Synchronizing SCSI cache for disk sda Restarting system. Orion1 CPU = Low === KURO U-Boot. === ** LOADER ** ** KUROBOX BOARD KURO_BOX LE (CFG_ENV_ADDR=fffff000) U-Boot 1.1.1 (Apr 10 2007 - 18 10 08) Marvell version 1.12.1 - TINY DRAM CS[0] base 0x00000000 size 128MB DRAM Total size 128MB [256kB@fffc0000] Flash 256 kB Addresses 20M - 0M are saved for the U-Boot usage. Mem malloc Initialization (20M - 16M) Done NAND 256 MB Soc 88F5182 A2 CPU ARM926 (Rev 0) running @ 500Mhz Orion 1 streaming disabled SysClock = 250Mhz , TClock = 166Mhz USB 0 host mode USB 1 host mode PCI 0 PCI Express Root Complex Interface PCI 1 Conventional PCI, speed = 33000000 Net egiga0 [PRIME] Using 88E1118 phy hit any key to switch tftp boot. Hit any key to stop autoboot 0 system_bootend Hit any key to stop autoboot 3 またここでEnteryキーでストップ お決まりの5行を入力 Marvell setenv bootargs_root root=/dev/mtdblock2 rw panic=5 Marvell setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver) Marvell setenv bootcmd nboot $(default_kernel_addr) 0 $(nand_uImage_offset) ;setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver); bootm $(default_kernel_addr) Marvell setenv nand_boot yes Marvell boot Loading from device 0 NULL at 0xfa000000 (offset 0x20000) Image Name Linux-2.6.12.6-arm1 Created 2007-04-10 13 45 13 UTC Image Type ARM Linux Kernel Image (uncompressed) Data Size 1736548 Bytes = 1.7 MB Load Address 00008000 Entry Point 00008000 stop_sound ## Booting image at 00100000 ... Image Name Linux-2.6.12.6-arm1 Created 2007-04-10 13 45 13 UTC Image Type ARM Linux Kernel Image (uncompressed) Data Size 1736548 Bytes = 1.7 MB Load Address 00008000 Entry Point 00008000 Verifying Checksum ... OK OK Starting kernel ... arg console=ttyS0,115200 root=/dev/mtdblock2 rw panic=5 BOOTVER=1.091 CONFIG_KUROBOX_PLATFORM CONFIG_KUROBOX_KUROBOX --- Uncompressing Linux................................................................................................................. done, booting the kernel. Linux version 2.6.12.6-arm1 (root@dev-hara) (gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2)) #27 Tue Apr 10 22 47 16 JST 2007 CPU ARM926EJ-Sid(wb) [41069260] revision 0 (ARMv5TEJ) CPU0 D VIVT write-back cache CPU0 I cache 32768 bytes, associativity 1, 32 byte lines, 1024 sets CPU0 D cache 32768 bytes, associativity 1, 32 byte lines, 1024 sets Machine MV-88fxx81 Using UBoot passing parameters structure Sys Clk = 250000000, Tclk = 166664740 Memory policy ECC disabled, Data cache writeback Built 1 zonelists Kernel command line console=ttyS0,115200 root=/dev/mtdblock2 rw panic=5 BOOTVER=1.091 PID hash table entries 1024 (order 10, 16384 bytes) Console colour dummy device 80x30 Dentry cache hash table entries 32768 (order 5, 131072 bytes) Inode-cache hash table entries 16384 (order 4, 65536 bytes) Memory 128MB 0MB 0MB 0MB = 128MB total Memory 126208KB available (3037K code, 426K data, 112K init) Mount-cache hash table entries 512 CPU Testing write buffer coherency ok NET Registered protocol family 16 serial_initialize_ttyS1 (Debug) ttyS1 is initialized. config_device_cs Error Unknown board CPU Interface ------------- SDRAM_CS0 ....base 00000000, size 128MB SDRAM_CS1 ....disable SDRAM_CS2 ....disable SDRAM_CS3 ....disable PEX0_MEM ....base e0000000, size 128MB PEX0_IO ....base f2000000, size 1MB PCI0_MEM ....base e8000000, size 128MB PCI0_IO ....base f2100000, size 1MB INTER_REGS ....base f1000000, size 1MB DEVICE_CS0 ....base fa000000, size 2MB DEVICE_CS1 ....base f4000000, size 32MB DEVICE_CS2 ....base fa800000, size 1MB DEV_BOOCS ....base ff800000, size 8MB CRYPTO ENG ....no such Flash bankwidth 1, base ff800000, size 400000 KUROBOX FLASH size 4096[KB] Marvell Development Board (LSP Version 1.10.3.patch5_DB_NAS)-- KUROBOX_BOARD_KUROBOX Soc 88F5182 A2 Detected Tclk 166664740 and SysClk 250000000 Marvell USB EHCI Host controller #0 c04e4b00 Marvell USB EHCI Host controller #1 c04e4a40 pexBarOverlapDetect winNum 2 overlap current 0 mvPexInit Warning Bar 2 size is illigal it will be disabled please check Pex and CPU windows configuration PCI bus0 Fast back to back transfers enabled PCI bus1 Fast back to back transfers enabled SCSI subsystem initialized usbcore registered new driver usbfs usbcore registered new driver hub Use the XOR engines (offloading) for enhancing the following functions o RAID 5 Xor calculation o kernel memcpy o kenrel memzero o copy user to/from kernel buffers Number of XOR engines to use 2 cesadev_init(c00122e4) Fast Floating Point Emulator V0.9 (c) Peter Teichmann. inotify device minor=63 JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc. SGI XFS with no debug enabled Serial 8250/16550 driver $Revision 1.90 $ 4 ports, IRQ sharing disabled ttyS0 at MMIO 0x0 (irq = 3) is a 16550A ttyS1 at MMIO 0x0 (irq = 4) is a 16550A io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered RAMDISK driver initialized 3 RAM disks of 32768K size 1024 blocksize loop loaded (max 8 devices) Marvell Gigabit Ethernet Driver egiga o Ethernet descriptors in DRAM o DRAM SW cache-coherency o Checksum offload enabled o Loading network interface ** egiga_init_module (10) eth0 Intergrated Sata device found scsi0 Marvell SCSI to SATA adapter scsi1 Marvell SCSI to SATA adapter Vendor Hitachi Model HTS542525K9SA00 Rev BBFO Type Direct-Access ANSI SCSI revision 03 SCSI device sda 488397168 512-byte hdwr sectors (250059 MB) SCSI device sda drive cache write back SCSI device sda 488397168 512-byte hdwr sectors (250059 MB) SCSI device sda drive cache write back sda sda1 Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0 physmap flash device 400000 at ff800000 Found SST 39LF020 phys_mapped_flash Found 1 x8 devices at 0x0 in 8-bit bank number of JEDEC chips 1 cfi_cmdset_0002 Disabling erase-suspend-program due to code brokenness. RedBoot partition parsing not available Debug nand_scan nand_flash_ids[i].pagesize is exist Debug nand_scan mtd- erasesize=0x00020000 Debug nand_scan mtd- oobblock=0x00000800 Debug nand_scan mtd- oobsize=0x00000040 NAND device Manufacturer ID 0x20, Chip ID 0xda (ST Micro NAND 256MiB 3,3V 8-bit) Scanning device for bad blocks Bad eraseblock 854 at 0x06ac0000 Using static partition definition Creating 3 MTD partitions on "nand_mtd" 0x00000000-0x00400000 "uImage" 0x00400000-0x04400000 "rootfs" 0x04400000-0x10000000 "extra" usbmon debugs is not available ehci_platform ehci_platform.4523 EHCI Host Controller ehci_platform ehci_platform.4523 new USB bus registered, assigned bus number 1 ehci_platform ehci_platform.4523 irq 17, io mem 0x00000000 ehci_platform ehci_platform.4523 park 0 ehci_platform ehci_platform.4523 USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004 hub 1-0 1.0 USB hub found hub 1-0 1.0 1 port detected ehci_platform ehci_platform.16781 EHCI Host Controller ehci_platform ehci_platform.16781 new USB bus registered, assigned bus number 2 ehci_platform ehci_platform.16781 irq 12, io mem 0x00000000 ehci_platform ehci_platform.16781 park 0 ehci_platform ehci_platform.16781 USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004 hub 2-0 1.0 USB hub found hub 2-0 1.0 1 port detected USB Universal Host Controller Interface driver v2.2 Initializing USB Mass Storage driver... usbcore registered new driver usb-storage USB Mass Storage support registered. usbcore registered new driver usbhid drivers/usb/input/hid-core.c v2.01 USB HID core driver mice PS/2 mouse device common for all mice md raid0 personality registered as nr 2 md raid1 personality registered as nr 3 md raid5 personality registered as nr 4 raid5 measuring checksumming speed arm4regs 304.000 MB/sec 8regs 215.200 MB/sec 32regs 249.200 MB/sec raid5 using function arm4regs (304.000 MB/sec) md md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27 Buffalo Platform Linux Driver(Light) 0.01 installed. MICON ctrl (C) BUFFALO INC. V.1.00 installed. Kernel event proc (C) BUFFALO INC. V.1.00 installed. MICON V2 (C) BUFFALO INC. V.1.00 installed. NET Registered protocol family 2 IP routing cache hash table of 1024 buckets, 8Kbytes TCP established hash table entries 8192 (order 4, 65536 bytes) TCP bind hash table entries 8192 (order 3, 32768 bytes) TCP Hash tables configured (established 8192 bind 8192) NET Registered protocol family 1 NET Registered protocol family 17 md Autodetecting RAID arrays. md autorun ... md ... autorun DONE. Empty flash at 0x00df85f8 ends at 0x00df8800 VFS Mounted root (jffs2 filesystem). Freeing init memory 112K --- rcStart (NANDroot) --- ===== Starting MountSystemFolders ===== mounting procfs ... [Success] mounting sysfs ... [Success] mouting usbfs ... [Success] remouting rootfs ... [Success] mounting all devices ... [Success] ===== Starting checkroot.sh ===== rm /var/lock/perfmon is a directory rm /var/lock/printing is a directory rm /var/lock/subsys is a directory [Success] ===== Starting Kevent.sh ===== [Success] ===== Starting mount_share.sh ===== Mounting /dev/sda1 on /mnt/disk1 as a xfs file system. XFS bad magic number XFS SB validate failed mount Mounting /dev/sda1 on /mnt/disk1 failed Invalid argument Failed. Mounting /dev/sda1 on /mnt/disk1 as a ext3 file system. mount Mounting /dev/sda1 on /mnt/disk1 failed Invalid argument Failed. Mounting /dev/mtd3 on /mnt/mtd as a jffs2 file system. Success. [Success] ===== Starting sethostname.sh ===== hostname is setted to KUROBOX-PRO [Success] ===== Starting networking.sh ===== create network files.. IP=[dhcp], netmask=[], dgw=[], dns1=[], dns2=[] killall dhcpcd no process killed route SIOC[ADD|DEL]RT No such process Configuration network interface lo eth0 requesting DHCP tout=30[s] eth0 link down eth0 link up 5 , full duplex 5 , speed 100 Mbps 5 /etc/dhcpc/dhcpcd.exe /etc/dhcpc/dhcpcd-eth0.info up dhcpcd.exe interface eth0 has been configured with old IP=192.168.3.50 hostname is setted to KUROBOX-PRO [Success] ===== Starting httpd.sh ===== [Success] ===== Starting telnet.sh ===== [Success] ===== Starting inetd.sh ===== [Success] ===== Starting smb.sh ===== $Starting SMB services $Starting NMB services [Success] ===== Starting clientUtil_servd.sh ===== Starting clientUtil_server starting on eth0 [Success] ===== Starting bootcomplete.sh ===== [Success] ===== Starting FanController.sh ===== [Success] ===== Starting boss.sh ===== ... .. -~~(~~ .~ shDBDhz+(-. .~+sDDBNBDhhszDBNNNNBNNNBDs - ~sBNNNNNNNNNNNNNNNNNNNNNNNNNBs -=DNNBNNNNNNNNNNNNNNNNNBNNNNNNNNBz .~zNNNNNNNNNNNNNNNNNNNNNNNNNNBNNNNNNNz~ ~hBNNNNBNNNNNNNNNNNNNNNNNNNNNNNNNNNNNND+ (hNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNBs- .~zNNNNNNNNNNNNNNNNNNNNNNNBNNNNNNBNNBNNNNNNBs ~sBNNNNNNNNNNNNNNNNNNNNNNNNNNNNBNNNNNNNNNNNNNz (+DNNNNNNNNNNNNNNNNNNNNNNDzNNNNNhzDNNBNNNNNNNNBs (sNNNNNNNNNNNNNNNNNNNNNNB=~hNNNN=~(sDNNNNNNNNNND (+DNNNNNNNNNNNNNNNNNNNNNNs .=NNNNz- (zDNNNNNNNNNz ~=BNNNNNNNNNNNNNNNNNNNNND- .=BNNNN . .(hNNNNNNNNB ~sNNNNNNNNNNNNNNNNNNNNND+. .+BNNNN+ ~sBNNNNNNN (zNNNNNNNNNNNNNNNNNNNNND ..+BNBNB=- .+BNNNNNNh (zNNNNNNNNNNNNNNNNNNNBB= . hNBBNs+- +DNNNBND (sNNNNNNNNNNNNNNNNNNNND( -DhDBN+ - . =NNNNNB ~+DNNBNNNNNNNNNNNNNNNNz =D=Dhh+( . ~DBNNNB ~(sNNNNNNNNNNNNNNNNNNNz. -hs(zz+ ( . .=NNNNN ~=NNBBBBNNNNNNNNNNNNB= ==-=+s((~. .~BNNNB ~=Nhs +++hNNNNNNNNBz - .~=-.s(+-(- hBNND =Ds+hz( ~hNNNNNNND+ ..-+ .-((( ~ ... -hNNNNDs ~+z(BN=. . BNNNNBhhDD=+ ~. ~-=shBBDhz+( -sBNNNBBNBz ~(=z(BD- ~~hBNNNs~-( zDDs+~(shzssszDBNDh= sBNNNNNNNBN ~~+s z=.-zh~sNNND . . zhhh==shDBNNNNNNNBDDNNNNNNNNNh ~~ ss+ .zBBs~zND+ ..-+zDBNNNNNNNNNNNhzNNNNNNNNND+ ~~(=h +DBz-sBs~ . (BBNNNNNNNNNz- BBNNBNNND= ~(~ zss(( (z sD+ ~DNNNNNNNNNz~ sNNNNNNDs ~(=Ds= ...-(h . . .. BNNNNNNNNz~ -hNNNBh ~(hNs(. =- .=BNNNNNBNs- .(hs== BNz~ . .(hBNNBDz .~ - -hNNh(. .. . (++~ . - . hBNB+ -+( . .- . zDNz( . ~+ - .. . .-. ..~(-. . . .~+(. .. -- . . . + ~ ~. ..... .- . ---(~~~( ~. .. . .((--- -~~(~ . . +s=(- -(+. Let s start a KURO-BOX! .... .(hBDzDD=. and have a fun time... .. .. . sDh+. . .. . ..-- . .. .. ... ....... . . .. .. - .. ... [Success] KUROUTOSHIKOU KUROBOX Series KUROBOX/PRO(KOSHO) KUROBOX-PRO login root Password login[782] root login on `ttyS0 BusyBox v1.1.1 (2007.04.06-12 02+0000) Built-in shell (ash) Enter help for a list of built-in commands. ~ # mount -t ext2 /dev/sda1 /mnt/disk1 EXT2-fs warning mounting unchecked fs, running e2fsck is recommended ~ # cd /mnt/disk1 /mnt/disk1 # ls -l -rw-r--r-- 1 root root 0 Mar 10 13 00 config-debian drwx------ 2 root root 16384 Mar 10 13 00 lost+found 警告が出ているけど気にしない。 さっき失敗した必要なファイルのwgetを実行してみる。 /mnt/disk1 # wget http //ftp.jp.debian.org/debian/dists/wheezy/main/installer-armel/current/images/orion5x/network-console/buffalo/kuroboxpro/config-debian Connecting to ftp.jp.debian.org[203.178.137.175] 80 config-debian 100% |*****************************| 1535 00 00 ETA /mnt/disk1 # wget http //ftp.jp.debian.org/debian/dists/wheezy/main/installer-armel/current/images/orion5x/network-console/buffalo/kuroboxpro/initrd.buffalo Connecting to ftp.jp.debian.org[203.178.137.175] 80 initrd.buffalo 100% |*****************************| 5035 KB 00 00 ETA /mnt/disk1 # wget http //ftp.jp.debian.org/debian/dists/wheezy/main/installer-armel/current/images/orion5x/network-console/buffalo/kuroboxpro/uImage.buffalo Connecting to ftp.jp.debian.org[203.178.137.175] 80 uImage.buffalo 100% |*****************************| 1450 KB 00 00 ETA いけた では早速セットアップへ /mnt/disk1 # sh config-debian Saving U-Boot environment to ubootenv.bak... done. Changing U-Boot environment... nvram_set bootcmd = ide reset; ext2load ide 0 1 $(default_kernel_addr) /$(kernel); ext2load ide 0 1 $(default_initrd_addr) /$(initrd); setenv bootargs $(bootargs_base); bootm $(default_kernel_addr) $(default_initrd_addr) done. Please reboot your Kurobox Pro. nvram使って書き換えればシリアルコンソール要らないのか… では再起動 nvramで書き換えられたので今度はストップが要らないので気楽に待つ。 /mnt/disk1 # reboot /mnt/disk1 # ----- rcDown ----- ===== Starting shutdown_start.sh ===== [Success] ===== Starting shutdown_proc.sh ===== ===== Starting clientUtil_servd.sh ===== Stop clientUtil_server [Success] ===== Starting smb.sh ===== $Shutting down SMB services $Shutting down NMB services [Success] ===== Starting networking.sh ===== Deconfiguration network interface lo eth0 killall dhcpcd no process killed [Success] ===== Starting Kevent.sh ===== [Success] ===== Starting FanController.sh ===== Stopping a fan ........... [Success] [Success] ===== Starting umount_disk.sh ===== [Success] The system is going down NOW !! Sending SIGTERM to all processes. Sending SIPlease stand by while rebooting the system. md stopping all md devices. md md0 switched to read-only mode. Synchronizing SCSI cache for disk sda Restarting system. Orion1 CPU = Low === KURO U-Boot. === ** LOADER ** ** KUROBOX BOARD KURO_BOX LE (CFG_ENV_ADDR=fffff000) U-Boot 1.1.1 (Apr 10 2007 - 18 10 08) Marvell version 1.12.1 - TINY DRAM CS[0] base 0x00000000 size 128MB DRAM Total size 128MB [256kB@fffc0000] Flash 256 kB Addresses 20M - 0M are saved for the U-Boot usage. Mem malloc Initialization (20M - 16M) Done NAND 256 MB Soc 88F5182 A2 CPU ARM926 (Rev 0) running @ 500Mhz Orion 1 streaming disabled SysClock = 250Mhz , TClock = 166Mhz USB 0 host mode USB 1 host mode PCI 0 PCI Express Root Complex Interface PCI 1 Conventional PCI, speed = 33000000 Net egiga0 [PRIME] Using 88E1118 phy hit any key to switch tftp boot. Hit any key to stop autoboot 2 1 0 system_bootend Hit any key to stop autoboot 3 2 1 0 Reset IDE Marvell Serial ATA Adapter Integrated Sata device found Device 0 OK Model Hitachi HTS542525K9SA00 Firm BBFOC31P Ser# 080422BB6F00WDDDBT6G Type Hard Disk Supports 48-bit addressing Capacity 238475.1 MB = 232.8 GB (488397168 x 512) Using device ide0, partition 1 Loading from block device ide device 0, partition 1 Name hda1 Type U-Boot File /uImage.buffalo 1485560 bytes read Using device ide0, partition 1 Loading from block device ide device 0, partition 1 Name hda1 Type U-Boot File /initrd.buffalo 5156040 bytes read stop_sound ## Booting image at 00100000 ... Image Name Debian kernel Created 2015-01-05 9 34 29 UTC Image Type ARM Linux Kernel Image (uncompressed) Data Size 1485496 Bytes = 1.4 MB Load Address 00008000 Entry Point 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 02000000 ... Image Name debian-installer ramdisk Created 2015-01-05 9 34 30 UTC Image Type ARM Linux RAMDisk Image (gzip compressed) Data Size 5155976 Bytes = 4.9 MB Load Address 02000000 Entry Point 02000000 Verifying Checksum ... OK Starting kernel ... arg console=ttyS0,115200 Uncompressing Linux... done, booting the kernel. [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 3.2.0-4-orion5x (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 Debian 3.2.65-1 [ 0.000000] CPU Feroceon [41069260] revision 0 (ARMv5TEJ), cr=a0053177 [ 0.000000] CPU VIVT data cache, VIVT instruction cache [ 0.000000] Machine Buffalo/Revogear Kurobox Pro [ 0.000000] Clearing invalid memory bank 0KB@0xffffffff [ 0.000000] Clearing invalid memory bank 0KB@0xffffffff [ 0.000000] Clearing invalid memory bank 0KB@0xffffffff [ 0.000000] Ignoring unrecognised tag 0x00000000 [ 0.000000] Ignoring unrecognised tag 0x00000000 [ 0.000000] Ignoring unrecognised tag 0x00000000 [ 0.000000] Ignoring unrecognised tag 0x41000403 [ 0.000000] Memory policy ECC disabled, Data cache writeback [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages 32512 [ 0.000000] Kernel command line console=ttyS0,115200 [ 0.000000] PID hash table entries 512 (order -1, 2048 bytes) [ 0.000000] Dentry cache hash table entries 16384 (order 4, 65536 bytes) [ 0.000000] Inode-cache hash table entries 8192 (order 3, 32768 bytes) [ 0.000000] Memory 128MB = 128MB total [ 0.000000] Memory 120408k/120408k available, 10664k reserved, 0K highmem [ 0.000000] Virtual kernel memory layout [ 0.000000] vector 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap 0xfff00000 - 0xfffe0000 ( 896 kB) [ 0.000000] vmalloc 0xc8800000 - 0xfd800000 ( 848 MB) [ 0.000000] lowmem 0xc0000000 - 0xc8000000 ( 128 MB) [ 0.000000] modules 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text 0xc0008000 - 0xc039c088 (3665 kB) [ 0.000000] .init 0xc039d000 - 0xc03c0000 ( 140 kB) [ 0.000000] .data 0xc03c0000 - 0xc03f9fc0 ( 232 kB) [ 0.000000] .bss 0xc03f9fe4 - 0xc045ca7c ( 395 kB) [ 0.000000] NR_IRQS 64 [ 0.000000] sched_clock 32 bits at 166MHz, resolution 5ns, wraps every 25769ms [ 0.000000] Console colour dummy device 80x30 [ 12.137424] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104) [ 12.207116] pid_max default 32768 minimum 301 [ 12.207429] Security Framework initialized [ 12.207612] Mount-cache hash table entries 512 [ 12.208337] Initializing cgroup subsys cpuacct [ 12.208386] Initializing cgroup subsys memory [ 12.208447] Initializing cgroup subsys devices [ 12.208479] Initializing cgroup subsys freezer [ 12.208509] Initializing cgroup subsys net_cls [ 12.208538] Initializing cgroup subsys blkio [ 12.208594] Initializing cgroup subsys perf_event [ 12.208780] CPU Testing write buffer coherency ok [ 12.211324] devtmpfs initialized [ 12.214771] print_constraints dummy [ 12.215226] NET Registered protocol family 16 [ 12.216750] Orion ID MV88F5182-A2. TCLK=166666667. [ 12.220449] Applying Orion-1/Orion-NAS PCIe config read transaction workaround [ 12.221209] PCI bus0 Fast back to back transfers disabled [ 12.227298] bio create slab bio-0 at 0 [ 12.228474] vgaarb loaded [ 12.230422] Switching to clocksource orion_clocksource [ 12.275838] NET Registered protocol family 2 [ 12.309253] IP route cache hash table entries 1024 (order 0, 4096 bytes) [ 12.311082] TCP established hash table entries 4096 (order 3, 32768 bytes) [ 12.311351] TCP bind hash table entries 4096 (order 2, 16384 bytes) [ 12.311497] TCP Hash tables configured (established 4096 bind 4096) [ 12.311529] TCP reno registered [ 12.311571] UDP hash table entries 256 (order 0, 4096 bytes) [ 12.311643] UDP-Lite hash table entries 256 (order 0, 4096 bytes) [ 12.312257] NET Registered protocol family 1 [ 12.312796] Unpacking initramfs... [ 13.580333] Freeing initrd memory 5032K [ 13.580367] NetWinder Floating Point Emulator V0.97 (double precision) [ 13.581885] audit initializing netlink socket (disabled) [ 13.581971] type=2000 audit(1.440 1) initialized [ 13.585681] VFS Disk quotas dquot_6.5.2 [ 13.585931] Dquot-cache hash table entries 1024 (order 0, 4096 bytes) [ 13.586223] msgmni has been set to 245 [ 13.587723] alg No test for stdrng (krng) [ 13.588000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253) [ 13.588042] io scheduler noop registered [ 13.588070] io scheduler deadline registered [ 13.588224] io scheduler cfq registered (default) [ 13.588469] mv_xor_shared mv_xor_shared.0 Marvell shared XOR driver [ 13.620611] mv_xor mv_xor.0 Marvell XOR ( xor cpy ) [ 13.660607] mv_xor mv_xor.1 Marvell XOR ( xor fill cpy ) [ 13.661638] Serial 8250/16550 driver, 2 ports, IRQ sharing disabled [ 13.683265] serial8250.0 ttyS0 at MMIO 0xf1012000 (irq = 3) is a 16550A [ 14.110384] console [ttyS0] enabled [ 14.134756] serial8250.1 ttyS1 at MMIO 0xf1012100 (irq = 4) is a 16550A [ 14.143600] physmap platform flash device 00040000 at f4000000 [ 14.149754] Found SST 39LF020 [ 14.152909] physmap-flash.0 Found 1 x8 devices at 0x0 in 8-bit bank [ 14.159280] number of JEDEC chips 1 [ 14.193019] NAND device Manufacturer ID 0x20, Chip ID 0xda (ST Micro NAND 256MiB 3,3V 8-bit) [ 14.201822] Scanning device for bad blocks [ 14.238566] Bad eraseblock 854 at 0x000006ac0000 [ 14.300751] Creating 3 MTD partitions on "orion_nand" [ 14.305909] 0x000000000000-0x000000400000 "uImage" [ 14.313476] 0x000000400000-0x000004400000 "rootfs" [ 14.321188] 0x000004400000-0x000010000000 "extra" [ 14.330054] mousedev PS/2 mouse device common for all mice [ 14.336587] i2c /dev entries driver [ 14.344783] rtc-rs5c372 0-0032 rs5c372a found, 24hr, driver version 0.6 [ 14.356860] rtc-rs5c372 0-0032 rtc core registered rtc-rs5c372 as rtc0 [ 14.366220] TCP cubic registered [ 14.369459] NET Registered protocol family 17 [ 14.374013] Registering the dns_resolver key type [ 14.378787] VFP support v0.3 not present [ 14.384110] registered taskstats version 1 [ 14.390002] rtc-rs5c372 0-0032 setting system clock to 2015-03-10 13 08 56 UTC (1425992936) [ 14.398628] Initializing network drop monitor service [ 14.405299] Freeing init memory 140K [ 14.826405] mv643xx_eth MV-643xx 10/100/1000 ethernet driver version 1.4 [ 14.936417] mv643xx_eth smi probed [ 15.061986] mv643xx_eth_port mv643xx_eth_port.0 eth0 port 0 with MAC address XX XX XX XX XX XX [ 15.214283] usbcore registered new interface driver usbfs [ 15.219976] usbcore registered new interface driver hub [ 15.277235] SCSI subsystem initialized [ 15.283887] usbcore registered new device driver usb [ 15.292303] ehci_hcd USB 2.0 Enhanced Host Controller (EHCI) Driver [ 15.298959] orion-ehci orion-ehci.0 Marvell Orion EHCI [ 15.385903] orion-ehci orion-ehci.0 new USB bus registered, assigned bus number 1 [ 15.480681] orion-ehci orion-ehci.0 irq 17, io mem 0xf1050000 [ 15.501970] orion-ehci orion-ehci.0 USB 2.0 started, EHCI 1.00 [ 15.508052] usb usb1 New USB device found, idVendor=1d6b, idProduct=0002 [ 15.514915] usb usb1 New USB device strings Mfr=3, Product=2, SerialNumber=1 [ 15.522165] usb usb1 Product Marvell Orion EHCI [ 15.526876] usb usb1 Manufacturer Linux 3.2.0-4-orion5x ehci_hcd [ 15.533085] usb usb1 SerialNumber orion-ehci.0 [ 15.665815] hub 1-0 1.0 USB hub found [ 15.669602] hub 1-0 1.0 1 port detected [ 15.702305] sata_mv sata_mv.0 slots 32 ports 2 [ 15.741857] scsi0 sata_mv [ 15.764300] scsi1 sata_mv [ 15.767884] ata1 SATA max UDMA/133 irq 29 [ 15.772067] ata2 SATA max UDMA/133 irq 29 [ 15.800881] orion-ehci orion-ehci.1 Marvell Orion EHCI [ 15.806200] orion-ehci orion-ehci.1 new USB bus registered, assigned bus number 2 [ 15.860686] orion-ehci orion-ehci.1 irq 12, io mem 0xf10a0000 [ 15.880672] orion-ehci orion-ehci.1 USB 2.0 started, EHCI 1.00 [ 15.886761] usb usb2 New USB device found, idVendor=1d6b, idProduct=0002 [ 15.893624] usb usb2 New USB device strings Mfr=3, Product=2, SerialNumber=1 [ 15.900882] usb usb2 Product Marvell Orion EHCI [ 15.905592] usb usb2 Manufacturer Linux 3.2.0-4-orion5x ehci_hcd [ 15.911801] usb usb2 SerialNumber orion-ehci.1 [ 15.988111] hub 2-0 1.0 USB hub found [ 16.000727] hub 2-0 1.0 1 port detected [ 16.280569] ata1 SATA link up 1.5 Gbps (SStatus 113 SControl 300) [ 16.320626] ata1.00 ATA-8 Hitachi HTS542525K9SA00, BBFOC31P, max UDMA/133 [ 16.327593] ata1.00 488397168 sectors, multi 0 LBA48 NCQ (depth 31/32) [ 16.390642] ata1.00 configured for UDMA/133 [ 16.395692] scsi 0 0 0 0 Direct-Access ATA Hitachi HTS54252 BBFO PQ 0 ANSI 5 [ 16.750560] ata2 SATA link down (SStatus 0 SControl 300) [ 16.875256] sd 0 0 0 0 [sda] 488397168 512-byte logical blocks (250 GB/232 GiB) [ 16.886139] sd 0 0 0 0 [sda] Write Protect is off [ 16.891416] sd 0 0 0 0 [sda] Write cache enabled, read cache enabled, doesn t support DPO or FUA [ 17.271393] sda sda1 [ 17.277923] sd 0 0 0 0 [sda] Attached SCSI disk Starting system log daemon syslogd, klogd. mount mounting /dev/mtdblock2 on /tmp/oldsys-preseed/rootfs failed Input/output error umount can t umount /tmp/oldsys-preseed/rootfs Invalid argument 無事にセットアップが始まりました。 続きはDebian Wheezy Install
https://w.atwiki.jp/dirtyface/pages/20.html
玄箱debian化 Serge化 apache2 + php4 Pukiwiki http //www.revulo.com/PukiWiki/Install/Main.html
https://w.atwiki.jp/linuxjapanwiki/pages/59.html
現在、LinuxJapanWikiはatwikiから Miraheze に移行中です。このページは2021年9月17日にMirahezeに移行しました。最新の情報は Mirahezeのページ で確認してください。 NNLinux ▲NNLinuxのロゴ NNLinuxは、 Debian および Ubuntu をベースに日本で開発されているLinuxディストリビューションである。 「NN」の名前の由来は 野々村竜太郎元兵庫県議 から。 ▲デスクトップ画面(Beta9) 各種データ 開発者 竹林人間3g+◢ 系統 Debian系 開発状況 開発中 初版 2019年4月29日 最新版 Beta10 (Debian 10 "buster" ベース) / 2020年5月3日 アップデート方式 APT パッケージ管理 dpkg カーネル Linux デスクトップ環境 Xfce , LXDE , GNOME ウェブサイト https //otintin.world/ キャッシュサイト (*1)(*2) https //otintin.tki.jp/ 概要 NNLinuxは非常に軽量であることで知られており、通常版のNNLinuxはデスクトップ環境にXfceを採用しているが、LXDE並みのRAM使用量を実現している。 推奨されるRAMの容量は512MBだが、通常版で256MB程度、Lite(現在は非推奨)では64MBでも動作する。 RAM以外にも軽量化には非常にこだわって開発されており、USBメモリにインストールして利用してもストレスを感じることはない。 余計なタスクなどは可能な限り削減されているが、デスクトップ利用で不便に感じる様な削減は一切行われておらず、使い勝手のいいアプリケーションの数々がプリインストールされている。 2020年3月現在、デスクトップ環境をGNOMEに変更したGNOME Editionや、 Ubuntu派生 の Basix をベースにしたBasix Edition、Raspberry Pi向けのPi Editionなどが開発されている。 NNLinuxはLive CD環境、インストール直後から日本語入力に対応している。また、DebianをベースとしておりAPTが利用でき、Debianの豊富なパッケージが利用可能である。 リリース 主なリリースを以下に列挙する。(*3) 主なバージョン リリース日 主な変更点 Beta1 2019年4月29日 Debian sidをベースにした初回リリース版 Beta2 2019年5月3日 日本語化・内蔵ソフトウェアの追加 Pi Edition 2019年5月22日 Beta2をRaspberry Pi向けに移植したもの Web Edition 2019年7月3日 Web閲覧用に特化したエディション Beta3 2019年6月23日 Chromiumが起動できないバグの修正が加えられた Basix Edition 2019年7月9日 Ubuntuをベースとした新しいエディション。様々なドライバーが利用可能に Basix for 64bit 2019年7月16日 64bit対応。(Ubuntuベース) Beta5 2019年7月30日 Debian派生ディストリビューションではじめてCalamaresインストーラが採用された Beta6 2019年8月11日 ディスプレイマネージャ(ロック画面)がLightDMからGDM3へ変更された。インストーラにrootパスワードが設定可能に。複数ユーザーが使用可能になるよう改善された。 Lite Edition 2019年8月16日 軽量版エディション。デスクトップ環境にLXDEが採用された Beta7 2019年10月20日 OS全体の速度の改善。安定性と機能面の調整。ディスプレイマネージャ(ロック画面)のLightDMへの変更 64bit 2019年12月29日 Debian10をベースにした64bit対応版。インストーラにユーザーを削除する機能が追加された Beta9 2020年2月24日 DVDからの起動に対応。Windowsアプリケーションの利便性向上。自動ログインの対応。デスクトップのデバイスの表示の削除 。その他細かいバグ修正 GNOME Edition 2020年3月22日 ライブ環境でWi-Fiアダプタ.Bluetooth等の無線機器が認識可能に。デスクトップ環境をGNOMEに変更し美しい外観に変わった。Twitterのみでの配布。 Beta10 2020年5月3日 Wi-Fiやディスプレイ関連のドライバーをさらに追加、ショートカットキーに対応、Plymoothアニメーションの変更 、動作速度の向上。 派生Linuxディストリビューション NNLinuxをベースとして作られたLinuxディストリビューションが存在している。 Yellowleaflinux NN base editionNNLinuxBeta7をベースとしている。 MillenniumLinux Beta3NNLinux Beta7 をベースとしている。 プリインストールソフトウェア 以下のようなソフトウェアがプリインストールされている。 Chromium(ウェブブラウザ) LibreOffice(オフィススイート) GIMP(画像編集ソフト) Mozilla Thunderbird(メールクライアント) VLC Media Player(動画・DVD再生ソフト) SimpleScreenRecorder(画面録画ソフト) Wine(Windowsアプリケーションを実行) GNOME サウンドレコーダー(録音ソフト) YouTube関連動画 開発者本人によるインストール解説動画 |【最新】NNLinuxのインストール方法 PC-FREEDOMさんのインストール&レビュー動画 | 32bitパソコンにLinuxをインストールしてみよう!#2.NNLinux ナナッキーさんのインストール&レビュー動画 |【日本製Linux】NNLinuxの紹介〜XFCEなのにLXDE並の速さ〜 外部リンク NNLinux 公式ウェブサイト NNLinux キャッシュサイト NNLinux GNOME(開発者のツイート) 開発者のTwitter 脚注に記載されているウェブサイトへのリンク ツキコウ氏のツイート(2021/07/23) 竹林人間氏のツイート(2021/08/02) コメント欄 コメント欄の利用に関してはコメント欄の利用を参照して下さい。 本ページに無関係な内容のコメントは一律して削除されます。Wiki運営に関しては Wiki運営掲示板 にお願いします 。 投稿されているコメントへの返信の際は、必ず返信したいコメント横の○にチェックを入れて返信して下さい。 +上記の内容を守れる方のみご利用ください。 上記の内容を守れる方のみご利用ください。 test - nanashi (2020-05-02 00 44 23) test2 - test (2020-05-02 00 47 38) 名前 コメントログ
https://w.atwiki.jp/aerocats/pages/19.html
/etcとは 別ページ「etcディレクトリとは」参照。 標準Linuxでも基本的に/etcディレクトリの役割は一般的なLinuxと変わりがない。 /etcの構成 実際に標準Linuxではどのような構成となっているか。 ファイルもしくはディレクトリ名 設定内容 BootFlag default/ 起動時に読み込まれる設定ファイル dhcpc/ DHCPクライアントの設定ファイルなどを保存するディレクトリ fan.prof Fandの設定ファイル(冷却ファンの回転数と温度の対応) first_boot fstab Linuxの起動の過程で自動的にマウントするデバイスの定義 group gshadow host.info 玄箱PROのネットワークで使う名前 hosts IPアドレスと名前の対応(一部はLinuxの起動の過程で書き込まれる) inetd.conf inetdの設定ファイル(非常駐型デーモンの起動) init.d/ デーモンの起動と終了の仕組みを保存するディレクトリ inittab Linuxの起動から終了の各段階で実行する処理 issue シリアルに接続した端末機に表示するメッセージ issue.net issueへのシンボリックリンク?。ネットワーク経由で接続した端末機に表示するメッセージ kurobox_release 標準Linuxのバージョン情報 ld.so.cache ld.so.conf 共有ライブラリ?が保存されているディレクトリの定義 localtime mtab /proc/mountsへのシンボリックリンク?。最新のマウントの状況 mtab~ netinfo 玄箱PROのIPアドレス(初期値はDHCPサーバから受け取る設定) nsswitch.conf IPアドレスと名前の対応を参照する場所の優先順位 ntp.conf ntp.conf.sv pam.d/ passwd profile 環境変数の初期値 resolv.conf resolv.conf.sv samba/ Sambaサーバーの設定ファイルなどを保存するディレクトリ services inetdの設定ファイル(ポート番号とサーバーの対応) shadow skel/ syslog.conf syslogdの設定ファイル(ログの種類と保存場所の対応) termcap 端末機の種類とエミュレーションの方法の対応 yp.conf yp.conf.sv ※参考「玄箱PROで遊ぼう!!(71ページ)」(ラトルズ)
https://w.atwiki.jp/aerocats/pages/3.html
タグ一覧 標準Linux 概略 Linux全般 シェルスクリプト 一覧 玄箱PRO固有 ディレクトリ エラー /etc コマンド RESETボタン ディストリビューション 起動メッセージ 外部接続 tftp 開発用Linux フラッシュメモリ オプション 終了メッセージ U-boot /dev /var /usr miconapl /bin /sbin /proc スペック プログラム 「玄箱PRO」関連ブログ #technorati